package com.zeei.bfs.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
import com.zeei.bfs.dao.SysLogDao;
import com.zeei.common.vo.SysLogVO;
import com.zeei.common.controller.BasicController;

@Controller
@RequestMapping("/bfs/syslog")
public class SysLogController extends BasicController {

	@Resource
	private SysLogDao syslogDao;

	@RequestMapping(value = "/insert", method = RequestMethod.POST)
	@ResponseBody
	public void insert(String sysLog) {
	SysLogVO log=JSON.parseObject(sysLog, SysLogVO.class);
	 syslogDao.insert(log);
	}


}
